home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_02
/
smith
/
bazcom.h
< prev
next >
Wrap
Text File
|
1993-12-29
|
820b
|
23 lines
/* BAZCOM.H
* Contributed to Public Domain 9/93
* by Thad Smith, Boulder Co.
*/
/* Internal constants */
#define BASE 94 /* # possible output chars */
#define FIRST_CODE '!' /* lowest output char */
#define END_FLAG '}' /* starts last data block */
#define PBASE 56 /* prefix base */
#define BINB_LEN 9 /* length of binary block */
#define ENCB_LEN 11 /* length of encoded block */
#define MAX_ENDBLK_DB 13 /* max # data bytes in
* final ensemble */
#define MAX_ENDBLK_LEN (MAX_ENDBLK_DB+2+2*2) /* max
*length of final ensemble, starting with END_FLAG */
#define CRC_INIT_VALUE (~0) /* CRC seed */
/* prefix multiplier */
#define PBMULT (unsigned)(((0xffffffffUL/PBASE)>>16)+1)
/* End of File */